using MediatR;
using RabbitTraceability.Api.Dtos.Response;

namespace RabbitTraceability.Api.Applications.Command
{
    /// <summary>
    /// 根据溯源编号查询详情的命令
    /// </summary>
    public class GetTraceabilityDetailCommand : IRequest<TraceabilityInfoDto>
    {
        /// <summary>
        /// 溯源编号
        /// </summary>
        public string TraceabilityId { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="traceabilityId">溯源编号</param>
        public GetTraceabilityDetailCommand(string traceabilityId)
        {
            TraceabilityId = traceabilityId;
        }
    }
} 